<?php echo $header; ?>

<div id="content">

  <div class="top">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">&nbsp;</div>
  </div>

  <!-- MIDDLE [START] -->
  <div class="middle">
    
    <!-- homeTopBox [START] --> 
    <div id="homeTopBox">
      <!-- MAIN CAT. [START] -->
      <?php foreach ($main_cats as $cat): ?>  
        <div class="catMainItem" style="background:url('<?php echo $cat['pic']; ?>') no-repeat;">
          <a href="<?php echo $cat['href']; ?>"><?php echo $cat['name']; ?></a> 
        </div>
      <?php endforeach; ?>
      <!-- MAIN CAT. [END] -->
    </div>
    <!-- homeTopBox [END] --> 
    
    <!-- NEW PRODUCTS [START] -->
    <div id="newProducts" class="TitleBar">      
      <div id="newProductsContent" class="TitleBarContent">
        <div class="TitleBarCenter"><h2>SẢN PHẦM MỚI</h2></div>
      </div>
    </div>
    
    <div>  
      <div class="pboxWrapper">
        <?php foreach ($new_products as $product): ?>
        <div class="pbox" style="background:url(<?php echo($product['pic']) ?>)">
          <div class="infoBar">            
            <label><?php echo($product['name']) ?></label>
            <div class="description"><?php echo($product['description']) ?></div>
            <div class="exInfo">
              <h3><?php printf('%sx%sx%s', $product['length'], $product['width'], $product['height']) ?></h3>
              <a href="<?php echo $product['href']; ?>">Xem thêm</a>
            </div>
          </div>
        </div>
        <?php endforeach; ?>
      </div>      
    </div>
    <!-- NEW PRODUCTS [END] -->
    
  </div>
  <!-- MIDDLE [END] --> 
  
<!--
  <div class="bottom">
      <div class="left"></div>
      <div class="right"></div>
      <div class="center"></div>
    </div>
-->

  <!--div id="bottomNews">
  <?php foreach ($bottom_news as $v): ?>
    <label><?php echo($v['title']) ?></label>
    <img src="<?php echo($v['thumb']) ?>" alt="<?php echo($v['title']) ?>" />
  <?php endforeach; ?>
  </div-->

  <?php
  /*
  foreach ($modules as $module) {
    echo ${$module['code']};
  }
  */
  ?>  
</div>

<?php echo $footer; ?>